package main

const (
	Dev_st_no_connect  = 0
	Dev_st_tcp_connect = 1
)

type Cfg_st struct {
	Wifi_ssid        string
	Wifi_pass        string
	Tcp_server_ip    string
	Tcp_server_port  uint16
	Temp_k           float32
	Temp_b           float32
	Humi_k           float32
	Humi_b           float32
	Collect_interval uint32
	Upload_interval  uint32
}

type Real_ht struct {
	Id   string
	Time uint32
	H    float32
	T    float32
}

type DeviceHT struct {
	Cfg           Cfg_st
	Real_ht_array Real_ht
	// Real_ht_array []Real_ht
}

func New_DeviceHT() *DeviceHT {
	return &DeviceHT{}
}
